<template>
	<view class="container">
		<view class="formBox" v-if="feedbackDetails!=null">
			<view class="line">
				<view class="line-title">反馈意见标题：</view>
				<u--text :size="26" color="#999999" :text="feedbackDetails.title"></u--text>
			</view>
			<view class="line">
				<view class="line-title">反馈内容：</view>
				<u--text :size="26" color="#999999" :text="feedbackDetails.content"></u--text>
			</view>
			<view class="line">
				<view class="line-title">反馈时间：</view>
				<u--text :size="26" color="#999999" :text="feedbackDetails.creatTime"></u--text>
			</view>
			<view class="line">
				<view class="line-title">联系电话：</view>
				<u--text :size="26" color="#999999" mode="phone" :text="feedbackDetails.phonenumber"></u--text>
			</view>
		</view>
	</view>
</template>

<script>
	import api from '@/api/api.js';
	export default {
		name: '',
		components: {},
		data() {
			return {
				id:null,
				feedbackDetails:null
			}
		},
		onLoad(option){
			if(option.id!=undefined){
				this.id=option.id
			}
		},
		created() {
			this.getDetails()
		},
		mounted() {},
		destroyed() {},
		methods: {
			getDetails(){
				let data={
					id:this.id
				}
				api.getFeedbackDetails(data).then(res=>{
					if(res.data.code==200){
						this.feedbackDetails = res.data.data
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.container{
		width: calc(100% - 64rpx);
		padding: 32rpx;
		.formBox {
			width: calc(100% - 64rpx);
			padding: 16rpx 32rpx;
			border-radius: 8rpx;
			background-color: #FFFFFF;
			margin: 16rpx 0;
			.line-btn{
				justify-content: space-around;
			}
			.line {
				display: flex;
				width: 100%;
				min-height: 60rpx;
				align-items: center;
		
				.line-title {
					width: 200rpx;
					font-size: 28rpx;
		
				}
			}
		}
	}
</style>
